﻿using Omniscient.Foundation.Data;
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omniscient.TimeTracker.Data
{
    public class Resource:EntityBase
    {
        public Resource() : base()
        { 
            Tasks = new EntityList<Task>();
            TimeEntries = new EntityList<TimeEntry>();
        }

        public Resource(Guid id, bool entityIsLoaded) : base(id, entityIsLoaded)
        {
            Tasks = new EntityList<Task>();
            TimeEntries = new EntityList<TimeEntry>();
        }

        public Resource(string userName) : base()
        {
            UserName = userName;
            Tasks = new EntityList<Task>();
            TimeEntries = new EntityList<TimeEntry>();
        }
      
        public string PersonName { get; set; }
        public string Email { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public bool IsAdmin { get; set; }

        public EntityList<Task> Tasks { get; private set; }
        public EntityList<TimeEntry> TimeEntries { get; private set; }

    }
}
